package com.wch.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import util.IdWorker;

@SpringBootApplication
@EnableEurekaClient  //add by WanChengHe 20190508 开启eureka
public class ArticleSearchApplication {

    public static void main(String[] args){
        SpringApplication.run(ArticleSearchApplication.class);
    }

    public IdWorker idWorker(){
        return new IdWorker(1,1);
    }
}
